home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: news.sprintlink.net!news1!news
- From: Charles Oliva <coliva@iquest.net>
- Subject: Setting environment variables from Borland C++
- X-Nntp-Posting-Host: ind-009-237-109.iquest.net
- Content-Type: text/plain; charset=us-ascii
- Message-ID: <31575478.C45@iquest.net>
- Sender: news@iquest.net (News Admin)
- Content-Transfer-Encoding: 7bit
- Organization: IQuest Internet, Inc.
- Mime-Version: 1.0
- Date: Tue, 26 Mar 1996 02:20:40 GMT
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Hello,
- I'm looking to put together a small DOS utility (I'm using Borland C++
- V4.52) that sets an environment variable from file input. I've looked
- into the getenv() and setenv() functions, but the documentation on
- setenv() implies that the environment variable value will disappear as
- soon as the program is done.
-
- So, how can you set an environment variable that will persist after the
- program is done? Thanks in advance.
-